import axios from 'axios'

export function listCity() {
    axios.get('movie/tpp/showAction.json', {
            params: {
                "_ksTS": "1623236742634_93",
                "jsoncallback": "jsonp94",
                "action": "showAction",
                "n_s": "new",
                "event_submit_doGetSoon": "true"
            },
            headers: {
                "accept": "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01",
                "accept-language": "zh-CN,zh;q=0.9",
                "sec-ch-ua": "\" Not;A Brand\";v=\"99\", \"Google Chrome\";v=\"91\", \"Chromium\";v=\"91\"",
                "sec-ch-ua-mobile": "?0",
                "sec-fetch-dest": "empty",
                "sec-fetch-mode": "cors",
                "sec-fetch-site": "same-origin",
                "x-requested-with": "XMLHttpRequest",
                "cookie": "t=a17b86dfa1f81927908fbef070051282; cna=sLIdGMGXnQcCAXFvtbPFTkmx; v=0; xlly_s=1; _samesite_flag_=true; cookie2=1cee355d5954e2c85862003f52e82653; _tb_token_=5b31e3dee5643; isg=BEREMklI-Pd690zWnW5NfdJdFcI2XWjHU6TENV7l0I_SieRThm04V3ovySFRlqAf; tfstk=cvElBd_q-zuS3y305gi7ep--r-7Awb7rNkr40kRu5RjFxM50pE8NPLBmw7qpR; l=eBgUZPzqjnYDwhlMBOfZnurza779sIRA_uPzaNbMiOCPOQ5p51hcW6OYDfY9CnGVhsmwR3l-cR2bBeYBqn4rGiUYaxom40Dmn"
            }
        })
        .then(res => {
            console.log(res.data)
        }).catch(error => {
            console.error(error)
        })
}